package com.llb666.e.shop.infrastructure.convert;

import com.llb666.e.shop.domain.entity.Orders;
import com.llb666.e.shop.infrastructure.po.OrdersPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * @author 斌~
 * @date 2022/8/7 下午8:45
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface OrderCvt {
    OrderCvt INSTANCE = Mappers.getMapper(OrderCvt.class);

    OrdersPo do2po(Orders orders);

    Orders po2do(OrdersPo ordersPo);
}
